package com.nativetalk.dao;

import com.nativetalk.bean.ClassRoom;
import com.nativetalk.bean.recording.TdNtMembRecordingList;

import java.util.List;
import java.util.Map;

/**
 * Created by wangzheng on 2017/3/9.
 */
@MyBatisRepository
public interface TdNtCourseInstanceRecordingDao {
    /**
     * @Purpose  根据stt_id查找用户上课录音信息
     * @version  4.1
     * @author   wangzheng
     * @param    stt_id
     * @return   TdNtMembRecordingList
     */
    public TdNtMembRecordingList findTdNtMembRecordingBySttId(int stt_id);


    /**
     * @Purpose  查找用户上课录音数量
     * @version  4.1
     * @author   wangzheng
     * @param    memb_id
     * @return   int
     */
    public int findTdNtMembRecordingSize(int memb_id);

    /**
     * @Purpose  查找用户上课录音分页
     * @version  4.1
     * @author   wangzheng
     * @param    map
     * @return   List<TdNtMembRecordingList>
     */
    public List<TdNtMembRecordingList> findTdNtMembRecordingPage(Map<String,Object> map);

    /**
     * @Purpose  更新用户上课录音状态(可见 删除)
     * @version  4.1
     * @author   wangzheng
     * @param    map
     * @return   void
     */
    public void updateTdNtMembRecording(Map<String, Object> map);

    /**
     * @Purpose  更新评价里的用户上课录音状态(评价可见 评价不可见)
     * @version  4.1
     * @author   wangzheng
     * @param    map
     * @return   void
     */
    public void updateTdNtMembCommentRecording(Map<String, Object> map);


    /**
     * @param recording
     * @Purpose 新增一条录音记录
     * @version 4.1
     * @author Peter
     */
    public void save(TdNtMembRecordingList recording);

    public void update(TdNtMembRecordingList recording);

    ClassRoom findClassRoomById(Integer roomId);

    Integer findSequenceByRoomId(Integer room_id);
}
